/*
 * 店铺列表搜索
 * @Author: LuoQianJun
 * @Date: 2018-04-24 09:31:16
 * @Last Modified by: ljb
 * @Last Modified time: 2019-03-12 09:45:49
 */
<template>
	<Form
		ref="formInline"
		name="query__form"
		inline
		@keydown.native.enter.prevent="confirmSearch">

		<Form-item
			:label-width="100"
			:label="$t('store.name')">
			<i-input
				v-model="formValidate.keyword"
				:placeholder="$t('store.please_enter_name')"
				name="query__name"
				type="text"/>
		</Form-item>

		<Form-item>
			<Button
				type="primary"
				name="query__search"
				@click="confirmSearch">
				{{ $t('common.search') }}
			</Button>
		</Form-item>

	</Form>
</template>
<script>

export default {
	name: 'CustomerStoreSearchForm',
	data() {
		return {

			formValidate: {

				keyword: '', // 店铺名称

			}, // 搜索框的对象参数

		};
	},

	methods: {

		/**
         * 确认搜索
         * @return {undefined}
         */
		confirmSearch() {
			const param = {

				keyword: this.formValidate.keyword,

			};

			this.$emit('search', param);
		},

	},

};

</script>
